package org.busalerter.repo;

import org.busalerter.domain.BusStop;

import java.util.ArrayList;
import java.util.List;

/**
 * very crude - hardcoding everything for now...
 *
 * would be nice to add more details into model
 *
 *
 * User: Andy
 * Date: 20/11/11
 * Time: 19:56
 */
public class BusStopRepoImpl implements BusStopRepo {
    public List<BusStop> getBusStops() {


        List<BusStop> busStops = new ArrayList<BusStop>();
        busStops.add(createStop("Bowling Green Lane (CL) towards Blackfriars. 63, N63", 71329));
        busStops.add(createStop("Rosebery Avenue / Mount Pleasant (CM) towards Kings Cross. 63, N63", 72008));
        busStops.add(createStop("Clerkenwell Green (K) towards Holborn. 55, 243, N35, N55", 52323));
        return busStops;
    }



    private BusStop createStop(String name, int busStopCode) {

        BusStop busStop = new BusStop();
        busStop.setName(name);
        busStop.setBusStopCode(busStopCode);
        return busStop;
    }
}
